var obj = null;
var curItemId = 1;
var playList = new Array();
var boxWidth = 451;

$(function(){
	if(_isAli){
		IMPlayer.CheckConnection ();
		IMPlayer.UpdateStatusSignal.connect(OnStateChanged);
	}
	window.addEventListener("pagehide", pageHide, false);
	
	var v = JP.getVolume();
	$('#volumeBox').html(v);
		
	playList =[{				//播放列表
		title:'aaa',
		path:'##'
	},{
		title:'aaa',
		path:'##'
	},{
		title:'aaa',
		path:'##'
	}]
	curItemId = 1;			//当前播放ak
	
	play(playList[curItemId - 1]);
});

function pageHide(){
	IMPlayer.Stop();
}

